import java.util.ArrayList;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 苏李涛
 * Date: 2024-06-11
 * Time: 18:48
 */
public class Test {
    public static void main(String[] args) {
        ArrayList<Integer> arrayList = new ArrayList<>(10);
        arrayList.add(1);
        arrayList.add(2);
        arrayList.add(3);

        arrayList.add(1, 100);

        ArrayList<Integer> list = new ArrayList<>();
        list.add(4);
        list.add(5);

        list.addAll(arrayList);

        list.remove(new Integer(100));
        System.out.println(list);

    }
}
